package com.training.dao.chenhao;
import java.util.List;

import com.training.pojo.chengshu.MotorRoom;
import com.training.pojo.chengshu.UDept;
import com.training.pojo.chengshu.ULog;
import com.training.pojo.chengshu.UUser;
import com.training.pojo.chengshu.UserRole;

public interface EmpDao {
   public List<UUser> emplist(int start,int max);//采用分页式,查找存在的emplist
   
   public  int empsize();
   
   public List<UUser> serachemp(Integer utype,Integer deptid,String uname,Integer sex);
   
   public List<UDept> deptname();//存入所有的deptname
   
   public void  addemp(UUser emp,String udept);
   
   public UUser empdetail(String uid);//根据uid查找某人的详细信息
   
   public List<MotorRoom> chaMotor(String uid);//一下5个查询表是为修改和删除人员做准备

   public List<UDept> chaDept(String uid);

   public List<ULog> chaLog(String uid);

   public List<UserRole> chaUserrole(String uid);
   
   public void deleteemp(final String uid);
   
   public Integer findDeptidByUserid(String userid);//下面两个是为了在修改人员时确定在部门里面是否有相应的userid
   
   public Integer findUseridBydeptid(int deptid);
   
   public void changeemp(final int id,final UUser emp,final String deptid);
}
